export const LoadingReducer = (preState = { isLoading: false }, action) => {
  // console.log(action);
  let { type } = action;
  switch (type) {
    case "change_isLoading":
      let newState = { ...preState }; //旧状态深拷贝
      newState.isLoading = !newState.isLoading;
      return newState;
    default:
      return preState;
  }
};
